projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef9d05
)
GtkStack: silently ignore visible-child-name set to NULL
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 25 Nov 2014 05:14:47 +0000
(
00:14
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 25 Nov 2014 05:14:47 +0000
(
00:14
-0500)
This can happen when loading empty stacks in glade.
gtk/gtkstack.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstack.c
b/gtk/gtkstack.c
index 130426c58225268dbeab081494171b623e8eab43..9726beddb4bd70f2ce7582ac46fc7206ac76433d 100644
(file)
--- a/
gtk/gtkstack.c
+++ b/
gtk/gtkstack.c
@@
-1701,7
+1701,9
@@
gtk_stack_set_visible_child_full (GtkStack *stack,
GList *l;
g_return_if_fail (GTK_IS_STACK (stack));
- g_return_if_fail (name != NULL);
+
+ if (name == NULL)
+ return;
child_info = NULL;
for (l = priv->children; l != NULL; l = l->next)